import { defineStore } from "pinia";
import homeApi from "@/api/home";
const getNewUserLikeStore = defineStore('userLike',{
    state: () => ({
        NewListenList: [],
        hotPointList:[]
    }),
        actions:{
           async getNewListen(pageNum, pageSize){
                let result =await homeApi.reqNewListen(pageNum, pageSize)
                    this.NewListenList = result.data
                // console.log(result)
            },
            async getHotPoint() {
                let result = await homeApi.reqHotPoint()
                this.hotPointList = result.data
                // console.log(result)
            }
        },
        getters:{}
})
export default getNewUserLikeStore